<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  User: Ivan wei
  --%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>课程查询系统</title>
    <style>
        input{
            border: none;
            outline: none;
            background-color: transparent;
            width: 100%;
            height: 36px;
        }
        .b1:hover{
            background-color: aqua;
        }
        a:link {color: blue; text-decoration:none;}
    </style>
</head>
<body style="min-width: 760px">
<h1 style="text-align: center">班级系统</h1>
<hr>
<%@ include file="/common.jsp" %>
<div style="display: flex;flex-direction: column;align-items: center">
    <h2>学生管理</h2>
    <div style="width: 100% ;height: 45px;border: 1px;display: flex;align-items: center;justify-content: space-evenly;">
        <a href="/Administrator/personStu.do"> 学生显示</a>
    </div>
    <table  style="min-width: 760px;background-color: rgb(235,242,241);height: 45px" border="1">
        <form method="post" action="/Administrator/personStu/addDoingStu.do">

            <tr>

                <td>学生姓名：</td><td> <input type="text" name="name" placeholder="User Name" required="required"></td>
            </tr>
            <tr>
                <td>学生手机号：</td><td> <input type="text" name="phone" placeholder="User Phone" required="required" oninput="value=value.replace(/[^\d]/g,'')"  maxlength="9"></td>
            </tr>
            <tr>
                <td>学生密码：</td><td> <input type="text" name="pwd" placeholder="Password" value="123456" required="required"></td>
            </tr>
            <tr>
                <td>所在班级：</td>

                <td> <select name="cid">
                <c:forEach var="Clazz" items="${addStu}">
                        <option value="${Clazz.id}" >${Clazz.name}</option>
                </c:forEach>
                    </select>
                </td>
            </tr>
            <tr>
                <td></td><td> <input type="submit" value="添加学生" class="b1" ></td>
            </tr>
        </form>
    </table>
</div>
</body>
</html>
